home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol06 / 01 / kermit / wnterm.h < prev    next >
C/C++ Source or Header  |  1990-12-31  |  3KB  |  94 lines

  1. /* 
  2.  * WNTERM header file
  3.  *
  4.  * Written by
  5.  * William S. Hall
  6.  * 3665 Benton Street, #66
  7.  * Santa Clara, CA 95051
  8. */
  9.  
  10. /* used to define global variables in only one place */
  11. #ifndef EXTERN
  12. #define EXTERN extern
  13. #endif
  14.  
  15. /* declarations for shared functions */
  16. /* from wnterm.c */
  17. LONG FAR PASCAL MainWndProc(HWND,unsigned,WORD,LONG);
  18. LONG FAR PASCAL MainWndSubProc(HWND,unsigned,WORD,LONG);
  19.  
  20. /* from wntint.c */
  21. BOOL FAR InitProgram(HANDLE,HANDLE,LPSTR,int);
  22. void FAR WndCreate(HWND hWnd, LPCREATESTRUCT pCS);
  23.  
  24. /* from wntfns.c */
  25. int NEAR ProcessComm(void);
  26. void NEAR WndCommand(HWND, WORD, LONG);
  27. void NEAR MainWndPaint(HWND, LPPAINTSTRUCT);
  28. void FAR _cdecl dbs(const char *fmt, ...);
  29.  
  30. /* from wntmsc.c */
  31. void ShowMessage(HWND, int);
  32. BOOL FAR PASCAL AboutBoxProc(HWND,unsigned,WORD,LONG);
  33. BOOL FAR PASCAL SetCommParams(HWND,unsigned,WORD,LONG);
  34.  
  35. /* virtual key value of scroll key */
  36. #define VK_SCROLL 0x91
  37.  
  38. /* string manifests */
  39. #define IDS_APPNAME        100
  40. #define IDS_ABOUT        101
  41. #define IDS_WINTITLE        102
  42. #define IDS_ICONSTRING        103
  43. #define IDS_OFFLINE        105
  44. #define IDS_ONLINE        106
  45. #define IDS_PORTSECTION        109
  46. #define IDS_CANNOTOPENFIRSTPORT    111
  47. #define IDS_CANNOTOPENANYPORT    112
  48. #define IDS_COMMSETERROR    113
  49. #define IDS_SMALLFONT        114
  50. #define IDS_FONTFACE        115
  51. #define IDS_CANNOTOPENPORT    116
  52. #define IDS_COM1        117
  53. #define IDS_COM2        118
  54. #define IDS_COM3        119
  55. #define IDS_COM4        120
  56.  
  57. /* menu manifests */
  58. #define IDM_ABOUT        200
  59. #define IDM_ONLINE        201
  60. #define IDM_OFFLINE        202
  61. #define IDM_COMM        203
  62. #define IDM_CLEAR        204
  63. #define IDM_LOCAL        205
  64.  
  65. /* comm port manifests */
  66. #define MAXCOMMPORTS    4
  67. #define INQUESIZE    256
  68. #define OUTQUESIZE    256
  69. #define BUFSIZE INQUESIZE
  70.  
  71. /* variables for the windows */
  72. EXTERN struct TTYWND MWnd;    /* private data for window */
  73.  
  74. /* strings */
  75. EXTERN char szAppName[10];    /* class name of main window */
  76. EXTERN char szIconTitle[5];    /* icon string */
  77. EXTERN char szOffLine[10];    /* menu strings */
  78. EXTERN char szOnLine[10];
  79.  
  80. /* comm port variables */
  81. EXTERN int cid;            /* comm port id */
  82. EXTERN DCB CommData;        /* comm data structure */
  83.  
  84. /* misc variables */
  85. EXTERN HANDLE hInst;        /* instance handle */
  86. EXTERN FARPROC fpMainWndProc;    /* subclass window procedure pointer */
  87. EXTERN int LineState;        /* on/off line state flag */
  88. EXTERN BOOL ScrollLock;        /* Scroll Lock key state */
  89. EXTERN BYTE Buffer[BUFSIZE + 1];  /* communications buffer */
  90. EXTERN int Buflen;        /* length of buffer */
  91. EXTERN BOOL smallfont;        /* create and use a tiny font */
  92. EXTERN HFONT hfont;        /* handle to the font */
  93.  
  94.